from sqlalchemy import Boolean, String, Integer, Column, FLOAT
from .database import Base


class User(Base):
    __tablename__ = "tb_user"
    id = Column(Integer, index=True, autoincrement=True, primary_key=True)
    username = Column(String, unique=True, nullable=False)
    auth_string = Column(String, nullable=False)
    nick_name = Column(String)
    mobile = Column(String)
    email = Column(String)
    city = Column(String, default='上海')
    lat = Column(FLOAT)
    lng = Column(FLOAT)
    profile_picture = Column(String)
    is_active = Column(Boolean, default=False)
